int *p;

int foo(int i)
{
    int n;
    n = *p;
    n = p[i];
}